<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
    <head>
        <title>Example</title>
        <script type="text/javascript">
            var rpxJsHost = (("https:" == document.location.protocol) ? "https://" : "http://static.");
            document.write(unescape("%3Cscript src='" + rpxJsHost + "rpxnow.com/js/lib/rpx.js' type='text/javascript'%3E%3C/script%3E"));
        </script>
        <script type="text/javascript">
            RPXNOW.overlay = true;
            RPXNOW.language_preference = 'en';
        </script>
    </head>
    <body>
        <p>{% if current_user or auth_session -%}
            {% if current_user -%}
            Signed in as {{ current_user.username|e }} &mdash; 
            <a class="rpxnow" onclick="return false;" href="{{ rpx_url }}"> Add Log In </a>&mdash;
            {%- endif %}<a href="{{ logout_url }}"> Log Out </a>
        {% else %}
            <a class="rpxnow" onclick="return false;" href="{{ rpx_url }}"> Sign In </a>
        {% endif %}</p>
        <hr>
        {% block body %}{% endblock %}
{%- block body_extra %}
{%- block messages -%}
<script>
    {% if messages %}
    messages = {{ messages }}
    {% endif %}
</script>
{%- endblock -%}
{% endblock %}
    </body>
</html>
